package com.commons.util;

import java.lang.reflect.InvocationTargetException;

/**
 * Bean 工具类
 *
 * @author 李旺林
 * @since 2020-12-27
 */
public class BeanUtils {

    /**
     * 拷贝对象属性
     * @param dest
     * @param orig
     * @throws InvocationTargetException
     * @throws IllegalAccessException
     */
    public static void copyProperties(Object dest, Object orig) throws InvocationTargetException, IllegalAccessException {
        org.apache.commons.beanutils.BeanUtils.copyProperties(dest, orig);
    }
}
